package com.toidep.entities;

import org.json.JSONObject;

import com.toidep.api.ParseJSON;
import com.toidep.config.Constants;

public class ProfileEntity {

	private String id;
	private String name;
	private String birthday;
	private String address;
	private String icon;
	private String background;
	private String display;
	private String icon_display;
	private String desc;
	private String total_video;
	private String total_gallery;
	
	public ProfileEntity() {
	}

	public void setInfo(JSONObject jsonObject) {
		
		this.id = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_ID);
		this.name = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_NAME);
		this.birthday = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_BIRTHDAY);
		this.address = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_ADDRESS);
		this.icon = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_ICON).replace(" ", "%20").replace("(", "%28").replace(")", "%29");
		this.background = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_BACKGROUND).replace(" ", "%20").replace("(", "%28").replace(")", "%29");
		
		this.display = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_DISPLAY);
		this.icon_display = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_ICON_DISPLAY).replace(" ", "%20").replace("(", "%28").replace(")", "%29");
		this.desc = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_DESCRIPTION);
		this.total_video = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_TOTAL_VIDEO);
		this.total_gallery = ParseJSON.getStringValue(jsonObject, Constants.PARAM_RESPONSE_TOTAL_GALLERY);
		
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getBackground() {
		return background;
	}

	public void setBackground(String background) {
		this.background = background;
	}

	public String getDisplay() {
		return display;
	}

	public void setDisplay(String display) {
		this.display = display;
	}

	public String getIcon_display() {
		return icon_display;
	}

	public void setIcon_display(String icon_display) {
		this.icon_display = icon_display;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getTotal_video() {
		return total_video;
	}

	public void setTotal_video(String total_video) {
		this.total_video = total_video;
	}

	public String getTotal_gallery() {
		return total_gallery;
	}

	public void setTotal_gallery(String total_gallery) {
		this.total_gallery = total_gallery;
	}

}
